package com.foundersoftware.commons.organization;

import com.foundersoftware.commons.organization.model.AbstractOrganizationObject;

public class ObjectNotFoundException extends PersistenceException{

    /**
	 * Object UID
	 */
	private static final long serialVersionUID = -3849753483690229811L;

	public ObjectNotFoundException(String message) {
        super(message);
    }

    public ObjectNotFoundException(AbstractOrganizationObject absOrgObj) {
       this("Unable to update " + absOrgObj.getClass().getName()
               +" with id" + absOrgObj.getId()
               + ",because one is not found with this identification." );
    }
}
